project(watch_dir)
set(CMAKE_CXX_STANDARD 17)
if(WIN32)
set(code watch/watch_windows.c)
include_directories(
    e:/Opensource/boost_1_82_0
)
link_directories(
    e:/Opensource/boost_1_82_0/stage/lib
)
add_compile_options(/EHa /openmp)
else()
set(code watch/watch_linux.c)
include_directories(D:/Opensource/boost_1_82_0)
link_directories()
add_compile_options(-fPIC -fexceptions -fopenmp)
endif()

#aux_source_directory(database code)
aux_source_directory(common code)
add_executable(searchd ${code} main.cpp)
target_link_libraries(searchd libboost_locale-vc143-mt-gd-x64-1_82)

add_executable(search ${code} search.cpp)
target_link_libraries(search libboost_locale-vc143-mt-gd-x64-1_82)
